package com.djl.springcloud.service.Impl;

import com.djl.springcloud.dao.PaymentDao;
import com.djl.springcloud.entities.Payment;
import com.djl.springcloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: cloud2020
 * @description:
 * @author: Mr.dai
 * @create: 2021-09-16 21:10
 **/
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentDao paymentDao;

    public int create(Payment payment){
       return paymentDao.create(payment);
    };
    public Payment getPaymentId( Long id){
       return paymentDao.getPaymentId(id);
    };
}
